package com.ny.demo512;

import java.io.*;
import java.util.Scanner;

public class Test {
    public static void saveFileDate (String fileName ) throws IOException {
        FileWriter fileWriter = new FileWriter(fileName);
        BufferedWriter bufferedWriter =new BufferedWriter(fileWriter);
        bufferedWriter.write (1);
        bufferedWriter.close();
    }

    public static void main(String[] args) throws IOException {
        Scanner scanner = new  Scanner (System.in);
         String fileName =scanner.next();
        saveFileDate(fileName );


        FileReader  reader  = new FileReader("1.txt");
        BufferedReader bufferedReader =new BufferedReader(reader);
        String  readerLine;
        while ((readerLine =bufferedReader .readLine() )!=null){
            System.out.println(readerLine );

        }


    }
}
